package cn.wlinker.video.monitor.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;

/**
 * 请求播放地址传输对象
 *
 * @author gxsjx
 * @version 1.0
 * @date 2022/11/10
 */
@lombok.Data
public class PlayUrlDTO {
    @ApiModelProperty(value = "设备id")
    private String id;

    @ApiModelProperty(value = "流播放协议;1-ezopen、2-hls、3-rtmp、4-flv，默认为2")
    private String protocol;

    @ApiModelProperty(value = "过期时长;单位秒；针对hls/rtmp/flv设置有效期，相对时间；30秒-720天")
    private Integer expireTime;

    @ApiModelProperty(value = "地址的类型;1-预览，2-本地录像回放，3-云存储录像回放，非必选，默认为1；回放仅支持rtmp、ezopen协议")
    private String type;

    @ApiModelProperty(value = "视频清晰度;1-高清（主码流）、2-流畅（子码流）")
    private Integer quality;

    @ApiModelProperty(value = "本地录像/云存储录像回放开始时间,",example = "2022-11-22 10:00:00")
    private String startTime;

    @ApiModelProperty(value = "本地录像/云存储录像回放结束时间",example = "2022-11-22 10:05:00")
    private String stopTime;

    @ApiModelProperty(value = "请判断播放端是否要求播放视频为H265编码格式;1表示需要，0表示不要求")
    private Integer supportH265;

    @Override
    public String toString() {
        return "PlayUrlDTO{" +
                "id='" + id + '\'' +
                ", protocol='" + protocol + '\'' +
                ", expireTime=" + expireTime +
                ", type='" + type + '\'' +
                ", quality=" + quality +
                ", startTime='" + startTime + '\'' +
                ", stopTime='" + stopTime + '\'' +
                ", supportH265=" + supportH265 +
                '}';
    }
}
